home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************************
- *
- * busybox.c -- Version 3.0 (Main Program)
- *
- * Copyright (c)
- * Apple Computer, Inc. 1986-1990
- * All Rights Reserved.
- *
- * Developer Technical Support Apple II Sample Code
- *
- * This file contains the busybox program.
- *
- ***********************************************************************/
-
- #include <types.h>
- #include <quickdraw.h>
- #include <locator.h>
- #include <memory.h>
-
- extern unsigned int userID;
-
- main()
- {
- Ref initRef; /* This holds the reference to the startstop record */
-
- initGlobals(); /* Initialize our globals. */
-
- userID = MMStartUp(); /* Start up and get ID from memory manager */
- TLStartUp(); /* Start up the tool locator */
-
- /* Startup the tools using the new toolbox call */
- initRef = StartUpTools(_ownerid, refIsResource, 0x0001L);
- if (!_toolErr) {
- setupMenus(); /* Set up menus */
- setupWindows();
- InitCursor(); /* Make cursor show ready */
- mainEvent(); /* Use application */
- }
-
- ShutDownTools(refIsHandle, initRef); /* Let toolbox shutdown the tools. */
- TLShutDown(); /* Shut down the tool locator */
-
- }
-